package com.easylinkin.linkappapi.facerecognition.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
@TableName("linkapp_personnel_identifier")
public class PersonnelIdentifier {

    @TableId(type = IdType.AUTO)
    private Long id;

    @NotEmpty(message = "身份名称不能为空")
    @TableField("identifier")
    private String identifier;

    @TableField("color")
    private String color;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("deleted")
    private Boolean deleted;

    // 该身份的人员总数
    private transient Integer count;

    @TableField("remarks")
    private String remarks;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}
